﻿using System.Data.Entity;

namespace CrawlerFramework.Models
{
    public class CrawlerDbInitializer:CreateDatabaseIfNotExists<CrawlerDbContext>
    {
        protected override void Seed(CrawlerDbContext context)
        {
            //context.CrawlStatusDefinitions.Add(new CrawlStatusDefinition
            //{
            //    CrawlStatusDescription = "Initial",
            //    CrawlStatusValue = 0
            //});
            //context.CrawlStatusDefinitions.Add(new CrawlStatusDefinition
            //{
            //    CrawlStatusDescription = "Processing",
            //    CrawlStatusValue = 1
            //});
            //context.CrawlStatusDefinitions.Add(new CrawlStatusDefinition
            //{
            //    CrawlStatusDescription = "Completed",
            //    CrawlStatusValue = 3
            //});
            //context.CrawlStatusDefinitions.Add(new CrawlStatusDefinition
            //{
            //    CrawlStatusDescription = "Error",
            //    CrawlStatusValue = 4
            //});

            base.Seed(context);
        }
    }
}
